x86/HVM: don't #GP/#SS on wrapping virt->linear translations
authorJan Beulich <jbeulich@suse.com>
Tue, 11 Sep 2018 13:06:23 +0000 (15:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Sep 2018 13:06:23 +0000 (15:06 +0200)
commitf710919994de7b0dc9a334a7440f8c6cce30d5cd
treead9fe00de94589001c8ac507db14d28f1b121c60
parentcb5b3720c005b1bd77876b0316f8a3750ddfb5c9
x86/HVM: don't #GP/#SS on wrapping virt->linear translations

Real hardware wraps silently in most cases, so we should behave the
same. Also split real and VM86 mode handling, as the latter really
ought to have limit checks applied.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c